package com.zhanglei.method;

/**
 * @author caesar
 * @date 2025/7/7
 * @Description:
 * @apiNote
 */
public class Coffee {
    private String name;//咖啡名称
    private String size;//杯型
    private double price;//价格

    public Coffee() {
    }

    public Coffee(String name, String size, double price) {
        this.name = name;
        this.size = size;
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
    public String display(){
        return "咖啡名称："+name+" 杯型："+size+" 价格："+price;
    }
}
